﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WCS.Infrastructure.Dto.Common;

namespace WCS.Infrastructure.Dto.Request.Payment
{
    /// <summary>
    /// 分成协议关联用户表
    /// </summary>
    public class DividedAgreementDetailRequestDto:BaseRequestDto
    {

        /// <summary>
        /// 分账协议详情ID
        /// </summary>
        [Key]
        [StringLength(32)]
        public string? Id { get; set; } = null!;

        /// <summary>
        /// 分账协议ID
        /// </summary>
        [StringLength(32)]
        public string? DividedAgreementId { get; set; } = null!;

        /// <summary>
        /// 用户ID
        /// </summary>
        [StringLength(32)]
        public string? UserId { get; set; } = null!;

        /// <summary>
        /// 分账比例
        /// </summary>
        public decimal? Ratio { get; set; } = 0;

        /// <summary>
        /// 是否是主账户
        /// </summary>
        public bool IsMasterAccount { get; set; } = false;

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column(TypeName = "timestamp(6) without time zone")]
        public DateTime? CreationTime { get; set; }

        /// <summary>
        /// 激活状态(0=未激活，1=已激活，用户确认后激活)
        /// </summary>
        public int? ActivationStatus { get; set; } = 1;

        /// <summary>
        /// 用户团队角色ID
        /// </summary>
        public string? UserRoleId { get; set; }


        ///////////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// 用户名称
        /// </summary>
        public string? UserName { get; set; }

        /// <summary>
        /// 用户手机号
        /// </summary>
        public string? UserPhone { get; set; }

    }
}
